// 构造函数，封装实例化对象，
function Cat(name,color){
    return{
        name:name,
        color:color
    }
}
let obj = new Object();
let cat1 = Cat('Tom','黑色');
console.log(cat1.name,cat1.color);
console.log(cat1.constructor)